<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例9</title>
</head>
<body>
    <script>
        function add(num,...values){
            console.log(num)
            console.log(values)
        }

        add(1,2,3,4,5,6,7)
    </script>
</body>
</html>